Skip to content

Add Opts To Exec#41

Merged
cooper-grc merged 1 commit intomainfrom
cg/exec-ops
Feb 27, 2026
Merged

Add Opts To Exec#41
cooper-grc merged 1 commit intomainfrom
cg/exec-ops

Conversation

@cooper-grc
Copy link
Copy Markdown
Collaborator

@cooper-grc cooper-grc commented Feb 24, 2026

Summary by cubic

Added command options to sandbox exec and updated its signature to be clearer and more flexible. You can now set cwd and env, and pass commands as a string or a string array.

  • New Features

    • exec accepts command as string or string[].
    • Added ExecOptions with cwd and env support.
  • Migration

    • Replace exec("sh", "-c", "...") with exec(["sh", "-c", "..."]).
    • Pass options as the second argument: exec(["node", "server.js"], { cwd: "/app", env: { NODE_ENV: "production" } }).

Written for commit a950b10. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@cooper-grc cooper-grc merged commit beb301d into main Feb 27, 2026
2 checks passed
@cooper-grc cooper-grc deleted the cg/exec-ops branch February 27, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants